﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Brc_PaaS.Common.Model.Apollo
{
  public  class CreateNamespaceViewDto
    {
        /// <summary>
        /// 必填	
        /// Namespace的名字
        /// </summary>
        [Required(ErrorMessage = "请输入名称")]
        public string Name { get; set; }

        /// <summary>
        /// 必填
        /// 系统Id（注册系统时返回的ID）
        /// </summary>
        [Required(ErrorMessage = "请输入名称")]
        public string SystemId { get; set; }

        /// <summary>
        /// 必填
        /// Apollo上绑定的AppId
        /// </summary>
        [Required(ErrorMessage ="请输入AppId")]
        public string AppId { get; set; }

        /// <summary>
        /// 必填
        /// Token(阿波罗官网上绑定的Token)
        /// </summary>
        [Required(ErrorMessage = "请输入Token")]
        public string Token { get; set; }

        /// <summary>
        /// 必填
        /// 创建人ID
        /// </summary>
        [Required(ErrorMessage ="请输入创建人ID")]
        public string CreateUserId { get; set; }
    }
}
